package com.covid;

import com.covid.model.ContactHistory;
import com.covid.model.Symptom;

public class DiagnosisEngine {
    public static int diagnose(Symptom symptom, ContactHistory contact) {
        boolean hasSymptoms = !symptom.getSelectedSymptoms().contains("都没有");
        boolean hasContact = contact.hasContact();

        if (!hasSymptoms) {
            return hasContact ? 3 : 4;
        } else {
            return hasContact ? 1 : 2;
        }
    }
}